import request from '../utils/request';
  
  export function getArticleListData(params) {
    return request({
      url: '/api/article/list',
      method: 'GET',
      params
    });
  }
  
  export function articleAdd(data) {
    return request({
      url: '/api/article/add',
      method: 'POST',
      data
    });
  }

  export function getDetail(params) {
    return request({
      url: '/api/article/detail',
      method: 'GET',
      params
    });
  }
  export function deleteArticle(params) {
    return request({
      url: '/api/article/delete',
      method: 'DELETE',
      params
    });
  }
  export function articleUpdate(data) {
    return request({
      url: '/api/article/update',
      method: 'POST',
      data
    });
  }
